Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sincosf(PI) #229

Merged
merged 1 commit into from
Oct 18, 2019
Merged

Fix sincosf(PI) #229

merged 1 commit into from
Oct 18, 2019

Conversation

CryZe
Copy link
Contributor

@CryZe CryZe commented Oct 4, 2019

Looks like the implementation was not ported correctly. Some negations were forgotten in a certain branch. Here is the original code in musl that has the negations:

https://github.com/bpowers/musl/blob/94cb2ec2a0ffcb47d24dbf7a30e462505396cf54/src/math/sincosf.c#L66-L67

Resolves #228

@alexcrichton
Copy link
Member

Thanks! Can you be sure to add some tests for this as well?

Looks like the implementation was not ported correctly. Some negations
were forgotten in a certain branch. Here is the original code in musl
that has the negations:

https://github.com/bpowers/musl/blob/94cb2ec2a0ffcb47d24dbf7a30e462505396cf54/src/math/sincosf.c#L66-L67

Resolves rust-lang#228
@CryZe
Copy link
Contributor Author

CryZe commented Oct 18, 2019

Alright, I added a test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sincosf returns (0, 1) on PI instead of (0, -1)
2 participants